/************************************************************************
  			hu/myai/model/TradeValue.java - Copyright bozbalint

Here you can write a license for your code, some comments or any other
information you want to have in your generated code. To to this simply
configure the "headings" directory in uml to point to a directory
where you have your heading files.

or you can just replace the contents of this file with your own.
If you want to do this, this file is located at

/opt/kde3/share/apps/umbrello/headings/heading.java

-->Code Generators searches for heading files based on the file extension
   i.e. it will look for a file name ending in ".h" to include in C++ header
   files, and for a file name ending in ".java" to include in all generated
   java code.
   If you name the file "heading.<extension>", Code Generator will always
   choose this file even if there are other files with the same extension in the
   directory. If you name the file something else, it must be the only one with that
   extension in the directory to guarantee that Code Generator will choose it.

you can use variables in your heading files which are replaced at generation
time. possible variables are : author, date, time, filename and filepath.
just write %variable_name%

This file was generated on Sat Mar 14 2009 at 12:14:34
The original location of this file is /home/bozbalint/uml-generated-code/hu/myai/model/TradeValue.java
 **************************************************************************/

package hu.myai.model;

/**
 * Class TradeValue
 * 
 * @author bozbalint
 * 
 */
public class TriggerVO {

    private int tradeType;

    private double risk;

    private double maxVolume;

    private TickVO tick;

    public static final int SELL_ONMARKET = 1;
    public static final int SELL_LIMIT = 2;
    public static final int SELL_ONSMALLPIECES = 3;
    public static final int SELL_ONBIGPIECES = 4;

    public static final int BUY_ONMARKET = -1;
    public static final int BUY_LIMIT = -2;
    public static final int BUY_ONSMALLPIECES = -3;
    public static final int BUY_ONBIGPIECES = -4;

    public TriggerVO() {
    };

    /**
     * Set the value of tradeType
     * 
     * @param newVar
     *            the new value of tradeType
     */
    public void setTradeType(int tradeType) {
        this.tradeType = tradeType;
    }

    /**
     * Get the value of tradeType
     * 
     * @return the value of tradeType
     */
    public int getTradeType() {
        return tradeType;
    }

    /**
     * Set the value of risk
     * 
     * @param newVar
     *            the new value of risk
     */
    public void setRisk(double risk) {
        this.risk = risk;
    }

    /**
     * Get the value of risk
     * 
     * @return the value of risk
     */
    public double getRisk() {
        return risk;
    }

    /**
     * Set the value of maxVolume
     * 
     * @param newVar
     *            the new value of maxVolume
     */
    public void setMaxVolume(double maxVolume) {
        this.maxVolume = maxVolume;
    }

    /**
     * Get the value of maxVolume
     * 
     * @return the value of maxVolume
     */
    public double getMaxVolume() {
        return maxVolume;
    }

    /**
     * @return the tick
     */
    public TickVO getTick() {
        return this.tick;
    }

    /**
     * @param tick
     *            the tick to set
     */
    public void setTick(TickVO tick) {
        this.tick = tick;
    }

    @Override
    public String toString() {
        return "[TriggerVO=" + tradeType + "," + risk + "," + maxVolume + "," + tick + "]";
    }
}
